-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add short const support, make constant scraping impl. testable #1503
Conversation
I thought everyone agreed that we shouldn't be changing the types of these to |
Here's what the output previously looked like:
And how it looks like afterwards:
|
Ok. Can you update the baseline? |
@mikebattista That's what I was asking you for help with (bottom of PR) 🙃. Doesn't look like it's detecting the changes. If you don't get to it, no worries, I can take a look off work hours. |
Tweaked the PR text as I realized it was causing some confusion (short constants vs short pwstr constant values). Sorry about that. |
My guess is the below needs to change. win32metadata/sources/WinmdUtils/Program.cs Lines 1129 to 1148 in 48d738c
|
New diff:
|
Awesome. Thanks! |
Fixes: #1029
Added support for
short
PSTR
/PWSTR
constant values in special cases (e.g.MAKEINTRESOURCE
). Did some light refactoring to the constant parsing code to get some unit testing going. More refactor work is needed; over time we'll eliminate our need for the abstractions dependency.New ConstantsScraper dependencies:
New test dependencies:
@mikebattista Can you help with the winmd changes comparison script? It doesn't seem to be picking up on the subtle differences here.